package com.yegs.jltqc.U8Controller;

import com.yegs.jltqc.TO.NamePageQuery;
import com.yegs.jltqc.TO.U8SelectMomorderQuery;
import com.yegs.jltqc.U8Service.U8SelectMomorder2Service;
import com.yegs.jltqc.U8Service.U8SelectMomorderService;
import com.yegs.jltqc.U8Service.U8VendorService;
import com.yegs.jltqc.config.Msg;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/selectMomorder")
public class U8SelectMomorderController {
    @Autowired
    private U8SelectMomorderService u8SelectMomorderService;

    @GetMapping("/query")
    public Msg query(@RequestParam String mocode,@RequestParam String socode){
        return Msg.success("page",u8SelectMomorderService.query(mocode,socode));
    }

    @PostMapping("/queryByPage")
    public Msg query(@RequestBody U8SelectMomorderQuery query){
        return Msg.success("page",u8SelectMomorderService.queryByPage(query));
    }


}
